package com.example.ex5_springboot.services;

import com.example.ex5_springboot.mappers.UserRegisterMapper;
import com.example.ex5_springboot.pojo.UserRegister;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRegisterServiceImpl implements UserRegisterService{
    @Autowired
    UserRegisterMapper userRegisterMapper;
    @Override
    public List<UserRegister> getAllUnRegisterUser() {
        return userRegisterMapper.getAllUnRegisterUser();
    }

    @Override
    public List<UserRegister> getUnRegisterUserByName(int name) {
        return userRegisterMapper.getUnRegisterUserByName(name);
    }

    @Override
    public int getCountOfUnregistered(int user_id) {
        return userRegisterMapper.getCountOfUnregistered(user_id);
    }
}
